package com.gsafety.wellsfort.common.enums;

public enum QuestionTypeEnum {
    SINGLE_ELECTION(1,"单选题"),
    MULTIPLE_CHOICE(2,"多选题"),
    JUDGE_QUESTION(3,"判断题"),
    SHORT_ANSWER(4,"简答题");
    public Integer	value;
    public String	label;

    QuestionTypeEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getLable() {
        return label;
    }

    public Integer getValue() {
        return value;
    }

    public static QuestionTypeEnum parseVal(Integer value){
        QuestionTypeEnum[] enums = QuestionTypeEnum.values();
        for(QuestionTypeEnum s : enums){
            if(s.getValue().intValue() == value.intValue()){
                return s;
            }
        }
        return null;
    }
}
